package com.jsy.mini12306.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jsy.mini12306.common.vo.StationVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 车站（字典表）(Station)实体类
 *
 * @author: SongyangJi
 * @since: 2021-09-02 02:42:55
 * @description:
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Station implements Serializable {
    private static final long serialVersionUID = 865979415546545490L;
    /**
     * 车站id (自增)
     */
    @TableId(type = IdType.AUTO)
    private Integer stationId;
    /**
     * 车站名
     */
    private String stationName;
    /**
     * 所在城市
     */
    private String city;
    /**
     * 地址
     */
    private String address;
    /**
     * 拼音
     */
    private String alphabetical;

    public StationVO getStationVO() {
        return new StationVO(stationId, stationName);
    }


}